# python版pdf转word
# 可以转图片，但页数会变多30页–>50页
# java 运行python脚本
# https://www.cnblogs.com/dhName/p/15582054.html

# pip install pdf2docx #安装依赖库
# https://www.jb51.net/article/210757.htm

from sys import argv
from pdf2docx import Converter

def main(argv):
    pdf_file = argv[1]
    docx_file = argv[2]
    cv = Converter(pdf_file)
    cv.convert(docx_file, start=0, end=None)
    cv.close()
if __name__ == '__main__':
    print('------------------------begin---------------------------')
    main(argv)
    print('-------------------------end----------------------------')
